{if !empty($memberlist)}
<form id="listform" action="setup.php?ac=company&op=del" method="post">
    <input type="hidden" name="formhash" value="{eval echo Utils::formhash();}"/>
    <table class="form_table" cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>&nbsp;</td>
                <td>用户名</td>
                <td>用户组</td>
                <td>所属公司</td>
                <td>是否该公司管理员</td>
                <td>添加时间</td>
                <td>最后登录时间</td>
                <td>状态</td>
            </tr>
        </thead>
        <tbody>
            {loop $memberlist $member}
            <tr>
                <td><input type="checkbox" name="uid[]" value="{$member['uid']}"/></td>
                <td><a href="setup.php?ac={$ac}&op=edit&cid={$member['cid']}">{$member['username']}</a></td>
                <td>{$member['grouptitle']}</td>
                <td>{$member['cname']}</td>
                <td>{if $member['cadmin']}是{else}否{/if}</td>
                <td>{$member['dateline']}</td>
                <td>{$member['lastupdate']}</td>
                <td>
                    {if $member['state']==1}正常{/if}
                </td>
            </tr>
            {/loop}
            <tr class="form_table_op_tr">
                <td><input type="checkbox" id="selectAll"/></td>
                <td colspan="3">
                    <input type="hidden" name="delsubmit" value="true"/>
                    <input class="i_submit" type="button" id="delsubmit" value="删除"/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
    $(function(){
        $("#selectAll").click(function(){
            selectAll(this,'listform');
        });
        $("#listform .form_table tr:even").remove('.form_table_op_tr').addClass('alt');
    });
</script>
{/if}